import request from "@/utils/request";

// 注册
export const registerApi = (obj) => {
  return request({
    url: "/h5/user/register",
    method: "post",
    data: obj
  })
};

// 登录
export const loginApi = (obj) => {
  return request({
    url: "/h5/user/login",
    method: "post",
    data: obj
  })
};
// 获取用户信息
export const getUserInfo = () => {
  return request("/h5/user/currentUser");
};
